package net.eascn.babyClone.control
{

	import com.adobe.cairngorm.control.FrontController;
	
	import net.eascn.babyClone.commands.*;


	public class Controller extends FrontController
	{
		//-----------------------------------------------------------
		public function Controller():void
		{
			initializeCommands();
		}

		//-----------------------------------------------------------
		public function initializeCommands():void
		{
			addCommand( Controller.EVENT_GETBOREDERDEFINEDDATA, GetBorederDefinedDataCommand );
			addCommand( Controller.EVENT_GETPHOTOLIST, GetPhotoListCommand );
			addCommand( Controller.EVENT_GETBACKGROUNDDEFINED, GetBackgroundDefinedCommand );
			addCommand( Controller.EVENT_GETLAYOUTLIST, GetLayoutListCommand );
			addCommand( Controller.EVENT_GETALBUMDEFINED, GetAlbumDefinedCommand );
			addCommand( Controller.EVENT_GETALBUMDEFINEDLIST, GetAlbumDefinedListCommand );
			addCommand( Controller.EVENT_GETUSERSTATUS,GetUserStatusCommand );
		}

		//-----------------------------------------------------------
		public static const EVENT_GETBOREDERDEFINEDDATA : String = "GetBorederDefinedDataEvent";
		public static const EVENT_GETPHOTOLIST : String = "GetPhotoListEvent";
		public static const EVENT_GETBACKGROUNDDEFINED : String = "GetBackgroundDefinedEvent";
		public static const EVENT_GETLAYOUTLIST : String = "GetLayoutListEvent";
		public static const EVENT_GETALBUMDEFINED : String = "GetAlbumDefinedEvent";
		public static const EVENT_GETALBUMDEFINEDLIST : String = "GetAlbumDefinedListEvent";
		public static const EVENT_GETUSERSTATUS	:	String = 'GetUserStatusEvent';

	}
}